﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace YZDD.Controllers
{
    public class NetController : Controller
    {
        //
        // GET: /Net/
        public class Count
        {
            public static int t = 0;
        }
        public ActionResult Index(string name = null, int num = 1,string answer = null)
        {
            if (name == null)
            {
                @ViewBag.name = "hello_world";

            }
            else if (name == "main")
            {
                @ViewBag.name = "main";
                Count.t = Count.t + 1;
            }
            else
            {
                @ViewBag.name = name;
            }
            @ViewBag.num = Count.t;
            return View();
        }
    }
}
